aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-03-21 11:55:58 -0700
committerAdam Soltys <[email protected]>2023-03-21 11:55:58 -0700
commitd3db47e4e32adb9da6f56420cf7acb7448f9099c (patch)
tree3c6be386ce2250b0ce16585ba94f115ad0f30915 /src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
parent067054f780e2f6f8acd9c950cbc2227783f6208b (diff)
downloadcoinos-ui-send-fiat.tar.gz
coinos-ui-send-fiat.zip
Diffstat (limited to 'src/routes/(app)/[username]/invoice/[hash]/+layout.server.js')
-rw-r--r--src/routes/(app)/[username]/invoice/[hash]/+layout.server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
index 7cf87e14..df22400a 100644
--- a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
+++ b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js
@@ -9,6 +9,8 @@ export async function load({ depends, params, url, parent }) {
let { hash } = params;
let invoice = await get(`/invoice/${hash}`);
+ console.log("HI", invoice)
+
if (user && invoice.uid !== user.id && !url.pathname.includes('tip'))
throw redirect(307, `/send/invoice/${hash}`);